<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>树形表格</title>
<!--框架必需start-->
<script type="text/javascript" src="../../libs/js/jquery.js"></script>
<script type="text/javascript" src="../../libs/js/language/cn.js"></script>
<script type="text/javascript" src="../../libs/js/framework.js"></script>
<link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="../../" scrollerX="true"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<!--框架必需end-->

<!--数据表格start-->
<script src="../../libs/js/table/quiGrid.js" type="text/javascript"></script>
<!--数据表格end-->
<style>
	.l-panel{
		border-left: 0;
		border-right: 0;
	}
	.l-panel table, .l-panel td{
		line-height: 35px;
	}
	.l-grid-row-cell-inner-title{
		line-height: 28px;
		height: 28px;
	}
	.l-grid-row-cell{
		border-bottom: dotted 1px #ccc;
		border-right:none;
	}
	.l-grid-hd-cell{
		border-right:none;
	}

.zcgrid_left{
	width: 585px;
	float: left;
	border-right: solid 1px #ccc;
}
.zcgrid_right{
	width: 585px;
	float: left;
}
.zcgrid{
	width: 1172px;
}
</style>
</head>
<body>
<div class="page_content">

		<div class="groupTitle"><span>资产负债表</span></div>

		<div class="zcgrid">
			<div class="zcgrid_left">
				<div id="maingrid"></div>
			</div>
			<div class="zcgrid_right">
				<div id="maingrid2"></div>
			</div>
			<div class="clear"></div>
		</div>

		
    </div>

<script type="text/javascript">
	var gridData={"rows":[
		{"id":1,"parentId":0,"index":1,"name":"流动资产","prev":"148,525,268,999.44","next":"202,413,451,160.48","children":[
			{"id":11,"parentId":1,"index":1.1,"name":"货币资金","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":1,"index":1.2,"name":"交易性金融资产","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":1,"index":1.3,"name":"应收票据","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":1,"index":1.4,"name":"应收账款","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":1,"index":1.5,"name":"预付账款","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":1,"index":1.6,"name":"应收股利","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":1,"index":1.7,"name":"应收利息","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":11,"parentId":1,"index":1.8,"name":"其他应收款","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":1,"index":1.9,"name":"存货","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":1,"index":1.10,"name":"消耗性生物资产","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":1,"index":1.11,"name":"待摊费用","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":1,"index":1.12,"name":"一年内到期的非流动资产","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":1,"index":1.13,"name":"其他流动资产","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":1,"index":1.14,"name":"影响流动资产其他科目","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":26,"parentId":1,"index":"","name":"","prev":"","next":""},
			{"id":26,"parentId":1,"index":"","name":"","prev":"","next":""},
			{"id":26,"parentId":1,"index":"","name":"","prev":"","next":""}
		]},
		{"id":2,"parentId":0,"index":"","name":"流动资产合计","prev":"142,117,550,906.22","next":"186,586,431,218.13"},
		
		{"id":3,"parentId":0,"index":2,"name":"非流动资产","prev":"148,525,268,999.44","next":"202,413,451,160.48","children":[
			{"id":11,"parentId":3,"index":2.1,"name":"可供出售金融资产","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":3,"index":2.2,"name":"持有至到期投资","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":3,"index":2.3,"name":"投资性房地产","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":3,"index":2.4,"name":"长期股权投资","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":3,"index":2.5,"name":"长期应收款","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":3,"index":2.6,"name":"固定资产","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":3,"index":2.7,"name":"工程物资","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":11,"parentId":3,"index":2.8,"name":"在建工程","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":3,"index":2.9,"name":"固定资产清理","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":3,"index":2.10,"name":"生产性生物资产","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":3,"index":2.11,"name":"油气资产","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":3,"index":2.12,"name":"无形资产","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":3,"index":2.13,"name":"开发支出","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":3,"index":2.14,"name":"商誉","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":26,"parentId":3,"index":2.15,"name":"长期待摊费用","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.16,"name":"递延所得税资产","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.17,"name":"其他非流动资产","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.18,"name":"影响非流动资产其他科目","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":"","name":"","prev":"","next":""},
			{"id":26,"parentId":3,"index":"","name":"","prev":"","next":""},
			{"id":26,"parentId":13,"index":"","name":"","prev":"","next":""}
		]},
		{"id":4,"parentId":0,"index":"","name":"非流动资产合计","prev":"142,117,550,906.22","next":"186,586,431,218.13"},
		{"id":5,"parentId":0,"index":"","name":"资产总计","prev":"142,117,550,906.22","next":"186,586,431,218.13"}
	]}

	var gridData2={"rows":[
		{"id":1,"parentId":0,"index":1,"name":"流动负债","prev":"148,525,268,999.44","next":"202,413,451,160.48","children":[
			{"id":11,"parentId":1,"index":1.1,"name":"短期借款","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":1,"index":1.2,"name":"交易性金融负债","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":1,"index":1.3,"name":"应付票据","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":1,"index":1.4,"name":"应付账款","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":1,"index":1.5,"name":"预收账款","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":1,"index":1.6,"name":"应付职工薪酬","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":1,"index":1.7,"name":"应交税费","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":11,"parentId":1,"index":1.8,"name":"应付利息","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":1,"index":1.9,"name":"应付股利","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":1,"index":1.10,"name":"预提费用","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":1,"index":1.11,"name":"预计负债","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":1,"index":1.12,"name":"递延收益-流动负债","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":1,"index":1.13,"name":"一年内到期的非流动负债","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":1,"index":1.14,"name":"应付短期债券","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":26,"parentId":1,"index":1.15,"name":"其他流动负债","prev":"187,685,600.66","next":"187,685,600.66"},
			{"id":26,"parentId":1,"index":1.16,"name":"影响流动负债其他科目","prev":"187,685,600.66","next":"187,685,600.66"},
			{"id":26,"parentId":1,"index":1.17,"name":"其他应付款","prev":"187,685,600.66","next":"187,685,600.66"}
		]},
		{"id":2,"parentId":0,"index":"","name":"流动负债合计","prev":"142,117,550,906.22","next":"186,586,431,218.13"},
		
		{"id":3,"parentId":0,"index":2,"name":"非流动负债","prev":"148,525,268,999.44","next":"202,413,451,160.48","children":[
			{"id":11,"parentId":3,"index":2.1,"name":"应付债券","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":3,"index":2.2,"name":"长期应付款","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":3,"index":2.3,"name":"专项应付款","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":3,"index":2.4,"name":"递延所得税负债","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":3,"index":2.5,"name":"递延收益-非流动负债","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":3,"index":2.6,"name":"其他非流动负债","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":3,"index":2.7,"name":"影响非流动负债其他科目","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":11,"parentId":3,"index":2.8,"name":"非流动负债合计","prev":"148326363909.94","next":"202149152364.77"},
			{"id":21,"parentId":3,"index":2.9,"name":"负债合计","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":3,"index":2.10,"name":"所有者权益","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":3,"index":2.11,"name":"实收资本（或股本）","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":3,"index":2.12,"name":"资本公积金","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":3,"index":2.13,"name":"盈余公积金","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":3,"index":2.14,"name":"未分配利润","prev":"-635,104,394.76","next":"187,685,600.66"},
			{"id":26,"parentId":3,"index":2.15,"name":"库存股","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.16,"name":"外币报表折算差额","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.17,"name":"未确认的投资损失","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.18,"name":"少数股东权益","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":26,"parentId":3,"index":2.19,"name":"归属于母公司股东权益合计","prev":"187,685,600.66","next":"187,685,600.66"},
			{"id":26,"parentId":3,"index":2.20,"name":"影响所有者权益其他科目","prev":"187,685,600.66","next":"187,685,600.66"},
			{"id":26,"parentId":13,"index":2.21,"name":"长期借款","prev":"187,685,600.66","next":"187,685,600.66"}
		]},
		{"id":4,"parentId":0,"index":"","name":"所有者权益合计","prev":"142,117,550,906.22","next":"186,586,431,218.13"},
		{"id":5,"parentId":0,"index":"","name":"负债及所有者权益总计","prev":"142,117,550,906.22","next":"186,586,431,218.13"}
	]}

	var g;
	var g2;
	function initComplete(){
	     //usePager: false设置为不分页
		 g = $("#maingrid").quiGrid({
	        columns: [
	        { display: '资产', name: 'name', id:'deptId', width: 200, align: 'left',isSort:false, 
                   render : function(rowdata, rowindex, value, column){
                       return ("流动资产合计" == value||"非流动资产合计" == value||"流动负债合计" == value||"所有者权益合计" == value) ? "<span style='font-weight:bold'>" + value + "</span>" : value;
                   }},
	        { display: '序号', name: 'index',width: 80, type: 'int', align: 'center',isSort:false },
	        { display: '期初数', name: 'prev', width: 150, align: 'left' ,isSort:false,headerAlign:"left"},
	        { display: '期末数', name: 'next', width: 150, align: 'left',isSort:false,headerAlign:"left" }
	        ], 
	        height: 'auto', width:585,checkbox:false,usePager: false,rowHeight:28,headerRowHeight:35,hideScrollerX:true,alternatingRow:false,
	        data:gridData,autoCheckChildren:false,hideLink:true,tree: { columnId: 'deptId' },rowAttrRender: function(rowdata, rowid){
                return ("流动资产" == rowdata.name||"流动负债" == rowdata.name||"非流动资产" == rowdata.name||"非流动负债" == rowdata.name||"资产总计" == rowdata.name||"负债及所有者权益总计" == rowdata.name) ? "style=\"background-color:#f5f5f5;\"" : '';
            }
	    });

		  g2 = $("#maingrid2").quiGrid({
	        columns: [
	        { display: '负债和所有者权益', name: 'name', id:'deptId', width: 200, align: 'left',isSort:false , 
                   render : function(rowdata, rowindex, value, column){
                       return ("流动资产合计" == value||"非流动资产合计" == value||"流动负债合计" == value||"所有者权益合计" == value) ? "<span style='font-weight:bold'>" + value + "</span>" : value;
                   }},
	        { display: '序号', name: 'index',width: 80, type: 'int', align: 'center',isSort:false },
	        { display: '期初数', name: 'prev', width: 150, align: 'left' ,isSort:false,headerAlign:"left"},
	        { display: '期末数', name: 'next', width: 150, align: 'left',isSort:false,headerAlign:"left" }
	        ], 
	        height: 'auto', width:585,checkbox:false,usePager: false,rowHeight:28,headerRowHeight:35,hideScrollerX:true,alternatingRow:false,
	        data:gridData2,autoCheckChildren:false,hideLink:true,tree: { columnId: 'deptId' },rowAttrRender: function(rowdata, rowid){
                return ("流动资产" == rowdata.name||"流动负债" == rowdata.name||"非流动资产" == rowdata.name||"非流动负债" == rowdata.name||"资产总计" == rowdata.name||"负债及所有者权益总计" == rowdata.name) ? "style=\"background-color:#f5f5f5;\"" : '';
            }
	    });
	}
	

</script>	
</body>
</html>